package cn.iocoder.yudao.module.promotion.mq.message;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 促销信息 消息
 *
 * @author 徐煜东
 */
@Data
public class PromotionInfoSendMessage  {
    public static final String TOPIC = "PROMOTION_ORDER_VIEW_RESPONSE_TOPIC"; // 重点：需要增加消息对应的 Topic

    @NotNull(message = "请求ID")
    private String requestId;

    @NotNull(message = "产品ID")
    private Long productId;

    @NotNull(message = "促销标题")
    private String promoTitle;

    /**
     * 促销详情
     */
    private String promoDescription;

    @NotNull(message = "可用状态")
    private Integer isActive; //参见 IsActiveEnum 枚举
}
